<?php include $this->tpl('public:common.php') ?>
    
<div class="well">
    <ul class="nav nav-tabs">
      <li class="active"><a href="#home" data-toggle="tab">账号组成员列表</a></li>
    </ul>	
	
	<div id="myTabContent" class="tab-content">
		  <div class="tab-pane active in" id="home">
           <form id="tab" method="post" action="">
				 <table class="table table-striped">
              <thead>
                <tr>
					<th><input type="checkbox" id="checkAll" >全选</th>
					<th>#</th>
					<th>登录名</th>
					<th>姓名</th>
					<th>手机</th>
					<th >邮箱</th>
					<th >登录时间</th>
					<th >登录IP</th>
					<th >Group#</th>
					<th>描述</th>
                </tr>
              </thead>
              <tbody>							  
				<?php foreach($user_infos as $user_info):?>
					<tr>
					<td><input type="checkbox" name="user_ids[]" value="<?=$user_info['user_id']?>"<?= $user_info['user_id'] == 1 ? 'disabled="disabled"' : '' ?>></td>
					<td><?=$user_info['user_id']?></td>
					<td><?=$user_info['user_name']?></td>
					<td><?=$user_info['real_name']?></td>
					<td><?=$user_info['mobile']?></td>
					<td><?=$user_info['email']?></td>
					<td><?=$user_info['login_time']?></td>
					<td><?=$user_info['login_ip']?></td>
					<td><?=$user_info['user_group']?></td>
					<td><?=$user_info['user_desc']?></td>
					</tr>
				<?php endforeach?>
              </tbody>
            </table> 
		
			<label>选择账号组</label>
				<select name="user_group" id="DropDownTimezone" class="input-xlarge">
					<?php foreach($groupOptions as $_val=>$_name):?>
						<option value="<?=$_val?>" class="input-xlarge option"><?=$_name?></option>
					<?php endforeach?>
				</select>
				<div class="btn-toolbar">
					<button type="submit" class="btn btn-primary"><strong>修改账号组</strong></button>
				</div>
			</form>
        </div>
    </div>
	
<script type="text/javascript">
$("#checkAll").click(function(){
     if($(this).attr("checked")){
		$("input[name='user_ids[]']").attr("checked",$(this).attr("checked"));
	 }else{
		$("input[name='user_ids[]']").attr("checked",false);
	 }
});
</script>
<?php include $this->tpl('public:footer.php') ?>
